package study.kit.stream.vo;

import lombok.Builder;
import lombok.Data;

import java.util.Arrays;
import java.util.Date;
import java.util.List;

@Builder
@Data
public class UserVO {
    private String code;
    private String name;
    private Integer age;
    private Date birthday;

    //    public UserVO() {
//    }
//
    public UserVO(String code) {
        this.code = code;
    }

    public UserVO(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public static List<UserVO> list() {
        UserVO u1 = UserVO.builder().build();
        UserVO u2 = UserVO.builder().build();
        UserVO u3 = UserVO.builder().build();
        return Arrays.asList(u1, u2, u3);
    }
}
